import 'package:flutter/material.dart';
import 'package:flutter_example/resources/strings.dart';

/// 加载图片
class ImageApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // 加载图片
    return Image.asset("images/presentb.png");
  }
}

/// 字符串读取
class StringApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: '字符串',
      theme: ThemeData(primarySwatch: Colors.blue),
      home: Text(Strings.welcomeMessage),
    );
  }
}
